//
//  SAPermissionsModel.h
//  Saas
//
//  Created by 黄志刚 on 2021/1/21.
//  Copyright © 2021 bing. All rights reserved.
//

#import <Foundation/Foundation.h>
@class SAPermsMenuListModel,SACommonPermsModel,SAPermsModel,SAPermsListModel;

NS_ASSUME_NONNULL_BEGIN

@interface SAPermissionsModel : NSObject

@property (nonatomic, strong) NSString *empId;
@property (nonatomic, strong) NSString *empName;
@property (nonatomic, strong) NSString *mobile;
@property (nonatomic, strong) NSString *empType;
@property (nonatomic, strong) NSString *enable;
@property (nonatomic, strong) NSString *userName;
@property (nonatomic, strong) NSMutableArray<SACommonPermsModel *> *commonPerms;
@property (nonatomic, strong) NSMutableArray<SAPermsMenuListModel *> *menuList;

@property (nonatomic, strong) NSString *isTemplate;//前端记录是否使用这个模板
@property (nonatomic, strong) NSString *passwordStr;//记录修改密码

@end

@interface SACommonPermsModel : NSObject

@property (nonatomic, strong) NSString *menuId;
@property (nonatomic, strong) NSString *empMenuId;
@property (nonatomic, strong) NSString *menuName;
@property (nonatomic, strong) NSString *isCommon;
@property (nonatomic, strong) NSString *parentId;
@property (nonatomic, strong) NSString *menuType;
@property (nonatomic, strong) NSString *orderNum;
@property (nonatomic, strong) NSString *isDelete;
@property (nonatomic, strong) NSString *descriptionStr;

@end


@interface SAPermsMenuListModel : NSObject

@property (nonatomic, strong) NSString *menuId;
@property (nonatomic, strong) NSString *empMenuId;
@property (nonatomic, strong) NSString *menuName;
@property (nonatomic, strong) NSString *isCommon;
@property (nonatomic, strong) NSString *parentId;
@property (nonatomic, strong) NSString *menuType;
@property (nonatomic, strong) NSString *menuCode;
@property (nonatomic, strong) NSString *orderNum;
@property (nonatomic, strong) NSString *isDelete;
@property (nonatomic, strong) NSMutableArray<SAPermsModel *> *perms;
@property (nonatomic, strong) NSMutableArray<SAPermsListModel *> *permsList;//组合需要的数据 get

@end

@interface SAPermsModel : NSObject

@property (nonatomic, strong) NSString *menuId;
@property (nonatomic, strong) NSString *empMenuId;
@property (nonatomic, strong) NSString *menuName;
@property (nonatomic, strong) NSString *isCommon;
@property (nonatomic, strong) NSString *parentId;
@property (nonatomic, strong) NSString *menuType;
@property (nonatomic, strong) NSString *menuCode;
@property (nonatomic, strong) NSString *orderNum;
@property (nonatomic, strong) NSString *isDelete;
@property (nonatomic, assign) BOOL noShow; //非后台参数，用于控制是否显示ui

@end

@interface SAPermsListModel : NSObject

@property (nonatomic, strong) SAPermsModel *perms1;
@property (nonatomic, strong) SAPermsModel *perms2;
@property (nonatomic, strong) SAPermsModel *perms3;

@end

NS_ASSUME_NONNULL_END
